﻿using SqlPerfomance.V2.DAL;
using SqlPerfomance.V2.DomainModel.Enums;
using SqlPerfomance.V2.DomainModel.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SqlPerfomance.V2.Tests.TestsCommand
{
    public class MpTestsCommand : BaseTestCommand<MaterializedPathTreeNode>
    {
        public MpTestsCommand(ConnectionStrings connectionString)
            :base(connectionString)
        { }

        protected override DAL.RealDataRepository<MaterializedPathTreeNode> Repository
        {
            get { return new MaterializedPathTreeRepository(); }
        }

        protected override ISqlTestOperation Tests
        {
            get { return new MpTests(_connectionString, _tableName); }
        }

        protected override Code.EnumHierarchyTestType EnumHierarchyTestType
        {
            get { return Code.EnumHierarchyTestType.MaterializedPath; }
        }
    }
}
